// export const register = obj => request.post('/h5/user')
// 导入
import request from '@/utils/request'
// 导出
export function register (data) {
  return request({
    method: 'POST',
    url: '/h5/user/register',
    data
  })
}

export function login (data) {
  return request({
    method: 'POST',
    url: '/h5/user/login',
    data
  })
}
export function getUserInfo () {
  return request({
    method: 'GET',
    url: '/h5/user/currentUser'
  })
}
